<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>文件上传下载</title>
</head>
<body>
    <!-- 目标接口：http://localhost:8080/ssm_project/upload -->
    <!-- 当前网页地址：http://localhost:8080/ssm_project/file-demo.html -->
    <!-- servlet上传 -->
    <form action="/ssm_project/upload" method="post"
     enctype="multipart/form-data">
        <input type="file" name="a"/><br/>
        <input type="submit"/>
    </form>

    <hr>
    <!-- springmvc上传 -->
    <form action="file/upload" method="post"
          enctype="multipart/form-data">
        <input type="file" name="a"/><br/>
        <input type="submit"/>
    </form>
</body>
</html>